package com.itheima.reggie.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * @author Mylinja 2021-12-19 星期日 21:41
 */
@Data
public class SetmealDish {

    private static final long serialVersionUID = 1L;

    private Long id;
    /**
     * 套餐id
     */
    private Long setmealId;
    /**
     * 菜品id
     */
    private Long dishId;
    private String name;
    private BigDecimal price;
    private Integer copies;
    private Integer sort;

    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;
    @TableField(fill = FieldFill.INSERT)
    private Long createUser;
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Long updateUser;
}
